package com.halflife.comeElectricity.basic.datadic;

import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

/**
 * Created by zhaoyf on 2018/9/15.
 */
@QueryAnn(title = "数据字典",mainTitle = "数据字典类型",table = "t_datadictype")
public class DataDicType {
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
    }
    private Integer id;
    @QueryAnn(value = "名称", operate = "like",refered = true)
    private String name;
    @QueryAnn(value = "编码", operate = "like",refered = true)
    private String code;
    @QueryAnn(value = "值")
    private String value;
    @QueryAnn(value = "备注")
    private String remark;
    @QueryAnn(value = "是否有效")
    private Boolean valid;
    @QueryAnn(value = "分类")
    private String catagory;

    public void init() {

    }

    public String getCatagory() {
        return catagory;
    }

    public void setCatagory(String catagory) {
        this.catagory = catagory;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }
}
